package api.ejb;
import java.util.Date;

import javax.ejb.Local;

import api.InvalidAuthenticationException;
import api.PhasebookToken;


@Local
public interface IAuthenticator {

	boolean registerUser(String username, String password) 
		throws InvalidAuthenticationException;
	
	PhasebookToken authenticate(String username, String password) 
		throws InvalidAuthenticationException;
	
	Date getLastLogin(String username) 
		throws InvalidAuthenticationException;
	
	boolean resetPassword(String username)
		throws InvalidAuthenticationException;
	
	boolean validateAuthenticationToken(String token)
		throws InvalidAuthenticationException;

}
